package top.zhaoyuliu.logbook.server.connect.service;

import org.springframework.stereotype.Service;
import org.tio.core.ChannelContext;

import lombok.extern.slf4j.Slf4j;
import top.zhaoyuliu.logbook.client.connect.packet.PacketType;

/**
 * Copyright © 2021 Arain. All rights reserved.
 *
 * @Title: ClientHeartService.java
 * @Prject: logbook-server
 * @Package: top.zhaoyuliu.logbook.server.connect.service
 * @Description: <功能详细描述>
 * @author: Arain
 * @date: 2021年2月1日 上午10:01:28
 * @version: V1.0
 */
@Service
@Slf4j
public class ClientHeartService implements DataService {

	@Override
	public Byte getType() {
		return PacketType.CLIENT_HEART_BEAT;
	}

	@Override
	public void handler(String data, ChannelContext channelContext) {
		log.info("客户端心跳 -> {}", data);
	}

}
